<div class="blade-content " id="deviceList-blade">
  <div class="blade-static" *ngIf="isShow">
    <div class="form-group">
      <div class="form-control __checkbox"><label class="form-label"
                                                  *ngFor="let deviceCategory of deviceCategorys;">
        <input type="checkbox"
               [checked]="deviceCategory?.isChecked"
               [value]="deviceCategory.deviceCategoryId"
               (click)="deviceCategoryIsChecked($event.target.checked,deviceCategory)">
        <span class="check"></span> <span
        class="name">{{deviceCategory.deviceCategoryName}}</span> </label>
      </div>
    </div>
  </div>
  <div class="blade-inner">
    <div class="inner-block">
      <div class="table-wrapper">
        <table class="table">
          <thead>
          <tr>
            <th class="table-col">
              <label class="form-control __checkbox">
                <input (click)="onAllCheack($event.target)" #allCheckRef name="allCheck" id="allCheck" type="checkbox">
                <span class="check"></span>
              </label>
            </th>
            <!--<th class="table-col">序号</th>-->
            <th class="table-col">名称</th>
            <th class="table-col">型号</th>
            <th class="table-col">线路</th>
            <th class="table-col">类别</th>
            <!--<th class="table-col">区域</th>-->
            <th class="table-col">标杆</th>
          </tr>
          </thead>
          <tbody>

          <tr class="table-item" *ngFor="let item of devices let i =index "
              [ngClass]="{'__selected': currentEntity?.deviceId == item.deviceId}">
            <td class="table-col ">
              <label class="form-control __checkbox">
                <input (click)="onItemCheack($event.target,item)" type="checkbox" [checked]="allCheckRef.checked">
                <span class="check"></span>
              </label>
            </td>
            <!--<td class="table-col" (click)="onSeletedChange(item)">-->
            <!--{{i+1}}-->
            <!--</td>-->
            <td class="table-col" (click)="onSeletedChange(item)">
              {{item.deviceName}}
            </td>
            <td class="table-col" (click)="onSeletedChange(item)">
              {{item.modelName}}
            </td>
            <td class="table-col" (click)="onSeletedChange(item)">
              {{item.circuitName}}
            </td>
            <td class="table-col" (click)="onSeletedChange(item)">
              {{item.deviceCategoryName}}
            </td>
            <!--<td class="table-col" (click)="onSeletedChange(item)">-->
            <!--{{item.subArrayName}}-->
            <!--</td>-->

            <td class="table-col" (click)="onSeletedChange(item)">
              <label class="form-control __checkbox">
                <input type="checkbox" name="enabled" [checked]="item.turBenchMark" disabled>
                <span class="check"></span>
              </label>
            </td>
          </tr>
          </tbody>
        </table>
      </div>
    </div>
    <!--<p-treeTable [value]="files" selectionMode="single" (onNodeSelect)="onNodeSelect($event)"-->
    <!--[(selection)]="selectedFile">-->
    <!--<ng-template pTemplate="header">-->
    <!--<tr>-->
    <!--<th>名称</th>-->
    <!--<th>型号</th>-->
    <!--<th>线路</th>-->
    <!--&lt;!&ndash;<th>设备类别</th>&ndash;&gt;-->
    <!--&lt;!&ndash;<th>区域</th>&ndash;&gt;-->
    <!--<th>是否标杆风机</th>-->
    <!--</tr>-->
    <!--</ng-template>-->
    <!--<ng-template pTemplate="body" let-rowNode let-rowData="rowData">-->
    <!--<tr [ttRow]="rowNode" [ttSelectableRow]="rowNode">-->
    <!--<td>-->
    <!--<p-treeTableToggler [rowNode]="rowNode"></p-treeTableToggler>-->
    <!--<label class="form-control __checkbox">-->
    <!--<input (click)="onItemCheack($event.target,rowData);" type="checkbox" [checked]="rowData.isChecked">-->
    <!--<span class="check"></span>-->
    <!--</label>-->
    <!--</td>-->
    <!--<td></td>-->
    <!--<td>{{rowData.deviceName}}</td>-->
    <!--<td>{{rowData.modelName}}</td>-->
    <!--<td>{{rowData.circuitName}}</td>-->
    <!--&lt;!&ndash;<td>{{// rowData.deviceCategoryName}}</td>&ndash;&gt;-->
    <!--&lt;!&ndash;<td>{{rowData.subArrayName}}</td>&ndash;&gt;-->
    <!--<td>{{rowData.turBenchMark}}</td>-->
    <!--</tr>-->
    <!--</ng-template>-->
    <!--&lt;!&ndash;<p-column field="isChecked" header="选择">&ndash;&gt;-->
    <!--&lt;!&ndash;<ng-template let-node="rowData" pTemplate="body"><label class="form-control __checkbox"> <input&ndash;&gt;-->
    <!--&lt;!&ndash;(click)="onItemCheack($event.target,node.data)" type="checkbox" [checked]="node.data.isChecked">&ndash;&gt;-->
    <!--&lt;!&ndash;<span class="check"></span> </label>&ndash;&gt;-->
    <!--&lt;!&ndash;</ng-template>&ndash;&gt;-->

    <!--&lt;!&ndash;</p-column>&ndash;&gt;-->

    <!--&lt;!&ndash;<p-column field="deviceName" header="名称"></p-column>&ndash;&gt;-->

    <!--&lt;!&ndash;<p-column field="modelName" header="型号"></p-column>&ndash;&gt;-->

    <!--&lt;!&ndash;<p-column field="circuitName" header="线路"></p-column>&ndash;&gt;-->

    <!--&lt;!&ndash;<p-column field="deviceCategoryName" header="设备类别" *ngIf="isShow"></p-column>&ndash;&gt;-->

    <!--&lt;!&ndash;<p-column field="subArrayName" header="区域" *ngIf="isShow"></p-column>&ndash;&gt;-->

    <!--&lt;!&ndash;<p-column field="isChecked" header="是否标杆风机" *ngIf="!isShow">&ndash;&gt;-->
    <!--&lt;!&ndash;<ng-template let-node="rowData" pTemplate="body"><label class="form-control __checkbox"> <input&ndash;&gt;-->
    <!--&lt;!&ndash;type="checkbox" [checked]="node.data.turBenchMark" disabled> <span&ndash;&gt;-->
    <!--&lt;!&ndash;class="check"></span> </label>&ndash;&gt;-->
    <!--&lt;!&ndash;</ng-template>&ndash;&gt;-->
    <!--&lt;!&ndash;</p-column>&ndash;&gt;-->
    <!--</p-treeTable>-->
  </div>
</div>

